/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package berkeley.lab5;

/**
 *
 * @author u
 */
public class X {
    
    /**
     * Part 3
     */
    public static final String constant = "constantX";
    
    String x;
    
    public X(int x) {
        this.x = "x=" + x;
    }
    
    /**
     * Part 2
     */
    public void f() {
        System.out.println("Hello X world");
    }
    
    @Override
    public String toString() {
        return x;
    }
}
